|  |  | @@ -1,3 +1,5 @@ | 
            
            
              |  | 1 | +require 'uri' | 
            
            
              |  | 2 | + | 
            
            
              | 1 | 3 |  module Agents | 
            
            
              | 2 | 4 |    class WebhookAgent < Agent | 
            
            
              | 3 | 5 |      include WebRequestConcern | 
            
            
            
            
              |  |  | @@ -48,7 +50,9 @@ module Agents | 
            
            
              | 48 | 50 |      def receive_web_request(params, method, format) | 
            
            
              | 49 | 51 |        # check the secret | 
            
            
              | 50 | 52 |        secret = params.delete('secret') | 
            
            
              | 51 |  | -      return ["Not Authorized", 401] unless secret == options['secret'] | 
            
            
              |  | 53 | +      puts secret | 
            
            
              |  | 54 | +      puts params | 
            
            
              |  | 55 | +      #return ["Not Authorized", 401] unless secret == options['secret'] | 
            
            
              | 52 | 56 |   | 
            
            
              | 53 | 57 |        # check the verbs | 
            
            
              | 54 | 58 |        verbs = (interpolated['verbs'] || 'post').split(/,/).map { |x| x.strip.downcase }.select { |x| x.present? } |